Platform Explorer / Nuxeo Platform LTS 2017 9.10

Component org.nuxeo.ecm.platform.comment.service.RelationContrib

Documentation

This component defines the relation-related config for comments.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.service.RelationContrib">

  <documentation>
    This component defines the relation-related config for comments.
  </documentation>

  <extension target="org.nuxeo.ecm.platform.comment.service.CommentService"
    point="config">
    <config>
      <converterClass>
        org.nuxeo.ecm.platform.comment.impl.CommentConverterImpl
      </converterClass>
      <graphName>documentComments</graphName>
      <!-- XXX AT: these namespaces should have an ending slash -->
      <commentNamespace>http://www.nuxeo.org/comments/uid</commentNamespace>
      <documentNamespace>http://www.nuxeo.org/document/uid</documentNamespace>
      <predicateNamespace>
        http://www.nuxeo.org/predicates/isCommentFor
      </predicateNamespace>
    </config>
  </extension>

  <!-- relation adapters -->
  <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
    point="resourceadapters">
    <!-- XXX AT: this namespace should have an ending slash -->
    <adapter namespace="http://www.nuxeo.org/comments/uid"
      class="org.nuxeo.ecm.platform.relations.adapters.DocumentModelResourceAdapter" />
  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService"
    point="doctype">
    <doctype name="CommentRelation" extends="Relation">
      <facet name="HiddenInNavigation" />
    </doctype>
  </extension>

</component>